<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="member.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>로그인</title>
<jsp:include page="/Dmyna/style.css" />
</head>
<body>

<c:set var="WEB_ROOT" value="/Dmyna" />

<script type="text/javascript">
<!--
function mywinclose() {
	window.opener.location.href="${WEB_ROOT}/index.jsp";
	//window.opener.location.reload();
	window.close();
}
//-->
</script>

<c:choose>
	<c:when test="${param.LOGIN_RESULT == 'LOGINOK' }">
	<table width="100%" height="100" cellpadding=0 cellspacing=0 >
		<tr>
			<td align="center" valign="middle" >
				<div style="border:1px solid #ddd; height:34px; background:url(${WEB_ROOT }/img/bbs/title_bg.gif) repeat-x;">
					<div style="font-weight: bold; font-size: 14px; margin: 7px 0 0 10px;" align="center">
						::&nbsp;&nbsp;<font color="red">D</font>myna&nbsp;&nbsp;::
					</div>
				</div>
			</td>
		</tr>
		<tr>
			<td align="center"><br/><p><font color="red" style="font-weight: bold; margin: 7px 0 0 10px;">나를</font> 위한<font color="red" style="font-weight: bold; margin: 7px 0 0 5px;" > 나만의</font> 디자인<br/><br/>로그인 되었습니다. ${sessionScope.SESSION_MB_NAME }<font color="blue" style="margin: 0px 0 0 5px;" >(${sessionScope.SESSION_MB_ID })</font> 님</p><br/><br/></td>
			
		</tr>
		<tr>
			<td align="center"><p><a href="javascript:mywinclose();" >확인</a></p><br/></td>
		</tr>
	</table>
	</c:when>

	<c:otherwise>
		<script>
			alert("로그인에 실패하였습니다. 아이디와 패스워드를 확인하세요.");
			location.href="/Dmyna/member/loginForm.jsp";
		</script>
	</c:otherwise>
</c:choose>

</body>
</html>